package com.mall.module.system.domain.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 创建部门返回VO
 */
@ApiModel("创建部门返回数据")
@Data
@Builder
public class CreateDeptVO {

    @ApiModelProperty(value = "部门ID", example = "1")
    private Long id;

    @ApiModelProperty(value = "部门名称", example = "技术部")
    private String name;

    @ApiModelProperty(value = "父部门ID", example = "0")
    private Long parentId;

    @ApiModelProperty(value = "显示顺序", example = "1")
    private Integer orderNum;

    @ApiModelProperty(value = "部门编码", example = "TECH")
    private String deptCode;

    @ApiModelProperty(value = "部门类型", example = "2", notes = "1:公司, 2:部门, 3:小组")
    private Integer deptType;

    @ApiModelProperty(value = "部门负责人ID", example = "1")
    private Long leaderId;

    @ApiModelProperty(value = "联系电话", example = "010-12345678")
    private String phone;

    @ApiModelProperty(value = "邮箱", example = "tech@company.com")
    private String email;

    @ApiModelProperty(value = "部门地址", example = "北京市朝阳区xxx街道")
    private String address;

    @ApiModelProperty(value = "部门描述", example = "负责公司技术研发工作")
    private String description;

    @ApiModelProperty(value = "状态", example = "1", notes = "0:禁用, 1:启用")
    private Integer status;

    @ApiModelProperty(value = "创建时间", example = "2024-01-01T10:00:00")
    private LocalDateTime createTime;
}
